/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JMVisio.java
 *
 * Created on 2009-9-1, 10:04:08
 */

package simulation;

/**
 *
 * @author haoliang.donghl
 */
public class JMVisio extends javax.swing.JFrame {
    private static JMVisio jmv;
    /** Creates new form JMVisio */
    protected JMVisio() {
        initComponents();
    }

    private void initComponents() {

        canvas = new VisioCanvas();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(canvas, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(canvas, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>

    public static JMVisio getInstance(){
        if (jmv == null){
            jmv = new JMVisio();
            jmv.setVisible(true);
        }
        return jmv;
    }

    // Variables declaration - do not modify
    public java.awt.Canvas canvas;
    // End of variables declaration

    public static void main(String[] args) {
        
    }
}
